/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jse;

/**
 *
 * @author WangShuai
 */
public class FinalTest {
    public static void main(String[] args) {
        //即使在try中return，也会执行final中的代码
        FinalTest ft = new FinalTest();
        ft.test();
    }

    public boolean test() {
        try {
            return false;
        } catch (Exception e) {
            e.printStackTrace();
            return true;
        } finally {
            System.out.println("Finally");
        }
    }
}
